package com.yxy.f_music_server.mapper;

import com.github.pagehelper.Page;
import com.yxy.f_music_server.domain.dto.FeedbackPageQueryDTO;
import com.yxy.f_music_server.domain.po.Feedback;
import com.yxy.f_music_server.domain.vo.FeedbackPageQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FeedbackMapper {
    /**
     * 添加反馈
     * @param feedback
     */
    void add(Feedback feedback);

    /**
     * 获取反馈列表
     * @param feedbackPageQueryDTO
     * @return
     */
    @Select("select * from feedback")
    Page<FeedbackPageQueryVO> getFeedbackList(FeedbackPageQueryDTO feedbackPageQueryDTO);
}
